package com.ehome.poct.base.api.dto.device.bootModule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("检测模块")
public class CheckModuleDTO {
    @ApiModelProperty(value="补光灯是否通过  true通过false不通过")
    private Boolean light;
    @ApiModelProperty(value="模块是否通过")
    private Boolean pass;
    @ApiModelProperty(value ="相机模块信息")
    private CameraInfo camera ;
    @Data
    @ApiModel("相机信息")
    public class CameraInfo{
        @ApiModelProperty("相机连同性connect    true连接false未连接")
        private String connect;
        @ApiModelProperty("关掉补光灯后相机的亮度值")
        private BigDecimal darkLuminance;
        @ApiModelProperty("关掉补光灯后相机的灰度值")
        private BigDecimal darkRi;
        @ApiModelProperty("相机帧率")
        private BigDecimal frameRate;
        @ApiModelProperty("中心亮度")
        private BigDecimal luminance;
        @ApiModelProperty("灰度值ri")
        private BigDecimal ri;
        @ApiModelProperty("合格率")
        private BigDecimal passRate;
    }
}
